﻿@model XSTDZ.ERP.Application.DataContracts.WorkGroupDto
@using XSTDZ.ERP.Infrastructure.Extentions
@{
    ViewBag.Title = " - 编辑工作组";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}

<h2>编辑工作组</h2>

<div class="wp100">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
        <td class="title"> @Html.LabelFor(model => model.GroupName)</td>
        <td> @*@Html.TextBoxFor(model => model.GroupName, new { @class = "text"})*@
        @Html.DropDownListFor(model => model.GroupName, ViewBag.WorkGroupNames as IEnumerable<SelectListItem>, new { @class = "select" })
        @Html.ValidationMessageFor(model => model.GroupName)
          @Html.HiddenFor(model => model.Id)
        </td>

        <td class="title">@Html.LabelFor(model => model.UserID)</td>
        <td>  @Html.TextBoxFor(model => model.Name, new { @class = "text" })
              @Html.HiddenFor(model => model.UserID)
            @Html.ValidationMessageFor(model => model.UserID)
         </td>
  </tr>
   <tr>
        <td class="title"> @Html.LabelFor(model => model.Remarks)</td>
        <td> @Html.TextBoxFor(model => model.Remarks, new { @class = "text" })
        @Html.ValidationMessageFor(model => model.Remarks)
        </td>

        <td class="title">@Html.LabelFor(model => model.IsHeadman)</td>
        <td> @* @Html.TextBoxFor(model => model.IsHeadman, new { @class = "text" })*@
           @* <input type="radio" name="IsHeadman" id="IsHeadman1" value="1" />是
             <input type="radio" name="IsHeadman" id="IsHeadma2" value="0" />否*@
                @Html.RadioButtonList("IsHeadman", ViewBag.IsHeadman as IEnumerable<SelectListItem>)
            @Html.ValidationMessageFor(model => model.IsHeadman)
         </td>
  </tr>
    

    <tr>
        <td  colspan="4">
              <p class="divBtn">
               <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="submit" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnSave"  class="BtnSubmit" id="submitBtn" name="submitBtn" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
        </p>
        </td>
    </tr>
    </table>
}
</div>

<script type="text/javascript">
    $(document).ready(function () {
        //组员姓名
        $("#Name").ligerPopupEdit({
            grid: getUserGridOptionsOfGroup(),
            valueField: 'Key',
            textField: 'Name'
        });
    });
    </script>

<script type="text/javascript" src="@Url.Content("~/Scripts/ligerUI/js/plugins/ligerPopupEdit.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Content/js/SelectData.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>

